package com.ming.test.page.ExtendsClass;

public class Son extends Father{
    private int money = 1000;

    public Son() {
        super();
//        this(1000);
    }

    public void test(){
        int money = super.money;//Father
        System.out.println(this.money); //Son
        System.out.println(money);
    }

    public static void main(String[] args){
        Son son = new Son();
//        son.say();
        son.test();

    }
}